const routes = [
  {
    path: '/', component: '@/pages/index/App', icon: 'icon-shouye', name: '首页管理',
  },
  {
    path: '/login', component: '@/pages/login/App', layout: false,
  },
  {
    path: '/vip', name: '会员中心', icon: 'icon-qinghuiyuan', routes: [
      {path: '/vip/user', name: '用户管理', component: '@/pages/vip/user/App'},
      {path: '/vip/balance', name: '余额流水', component: '@/pages/vip/balance/App'},
      {path: '/vip/auth2', name: '授权记录', component: '@/pages/vip/auth2/App'},
    ],
  },
  {
    path: '/mch', name: '商家管理', icon: 'icon-shanghuguanli', component: '@/pages/mch/info/App',
  },
  {
    path: '/operation', name: '运营管理', icon: 'icon-yunying', routes: [
      {path: '/operation/campain', name: '推广活动', component: '@/pages/operation/campain/App'},
      {path: '/operation/coupon', name: '卡券管理', component: '@/pages/operation/coupon/App'},
    ],
  },
  {
    path: '/mall', name: '商城管理', icon: 'icon-shangcheng', routes: [
      {path: '/mall/goods', name: '商品管理', component: '@/pages/mall/goods/App'},
      {path: '/mall/serve', name: '服务管理', component: '@/pages/mall/serve/App'},
      {path: '/mall/pkg', name: '套餐管理', component: '@/pages/mall/pkg/App'},
      {path: '/mall/security', name: '保障说明', component: '@/pages/mall/security/App'},
    ],
  },
  {
    path: '/order', name: '订单管理', icon: 'icon-zhifu', routes: [
      {path: '/order/polypay', name: '聚合支付', component: '@/pages/order/polypay/App'},
      {path: '/order/instore', name: '到店核销', component: '@/pages/order/instore/App'},
      {path: '/order/verify', name: '核销记录', component: '@/pages/order/verify/App'},
    ],
  },
  {
    path: '/payment', name: '支付管理', icon: 'icon-zhifu', routes: [
      {path: '/payment/charge', name: '交易记录', component: '@/pages/payment/charge/App'},
    ],
  },
  {
    path: '/cms', name: '内容管理', icon: 'icon-neirongmoxingshezhi', routes: [
      {path: '/cms/place', name: '推荐管理', component: '@/pages/cms/place/App'},
      {path: '/cms/page', name: '页面管理', component: '@/pages/cms/page/App'},
    ],
  },
  {
    path: '/system', name: '系统管理', icon: 'icon-quanjushezhi_o', routes: [
      {path: '/system/user', name: '用户管理', component: '@/pages/system/user/App'},
      {path: '/system/role', name: '角色管理', component: '@/pages/system/role/App'},
      {path: '/system/dept', name: '部门管理', component: '@/pages/system/dept/App'},
      {path: '/system/post', name: '岗位管理', component: '@/pages/system/post/App'},
    ],
  },
  {
    path: '/ucenter', icon: 'icon-gerenzhongxin', name: '个人中心', component: '@/pages/ucenter/App',
  },
  {path: '/*', component: '@/pages/404.js'},
];

export default routes;
